<?php
class Config
{
    var $configs=array();
    function getKey($key)
    {
        global $dbsql,$language;
        
        if(isset($this->configs[$key]))
        {
            return $this->configs[$key];
        }
        
        $sql_select = "select cValue from tblconfig where cName='$key' and cLanguage='$language'";
        $result     = $dbsql->query_fetch($sql_select);
        $this->configs[$key]=$result['cValue'];
        return $result['cValue'];        
    }  
}
?>